import request from "@/utils/request";

// 获取所有的数据库
export function getDatabaseList(query) {
  return request({
    url: '/databaseTable/getDatabaseList',
    method: 'get',
    params: query
  });
  }

// 获取所有的数据库
export function getTableList(query) {
  return request({
    url: '/databaseTable/getDatabaseTableList',
    method: 'get',
    params: query
  });
}

// 根据数据库名称和表名称获取表的列信息
export function getDatabaseTableColumnList(query) {
  return request({
    url: '/databaseTable/getDatabaseTableColumnList',
    method: 'get',
    params: query
  });
}

// 根据数据库名称和数据表名称 获取 建表sql
export function getDatabaseTableSql(query) {
  return request({
    url: '/databaseTable/getDatabaseTableSql',
    method: 'get',
    params: query
  });
}
